package NotificationIRPConstDefs;
/**
 * Generated from IDL enum "SubscriptionState".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class SubscriptionState
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _ACTIVE = 0;
	public static final SubscriptionState ACTIVE = new SubscriptionState(_ACTIVE);
	public static final int _SUSPENDED = 1;
	public static final SubscriptionState SUSPENDED = new SubscriptionState(_SUSPENDED);
	public static final int _INVALID = 2;
	public static final SubscriptionState INVALID = new SubscriptionState(_INVALID);
	public int value()
	{
		return value;
	}
	public static SubscriptionState from_int(int value)
	{
		switch (value) {
			case _ACTIVE: return ACTIVE;
			case _SUSPENDED: return SUSPENDED;
			case _INVALID: return INVALID;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _ACTIVE: return "ACTIVE";
			case _SUSPENDED: return "SUSPENDED";
			case _INVALID: return "INVALID";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected SubscriptionState(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
